# import requests
from curl_cffi import requests


# import requests
import time

times = time.time()*1000


# session = requests.Session()

headers = {
    'Accept': 'application/json, text/javascript, */*; q=0.01',
    'Accept-Language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
    'Cache-Control': 'no-cache',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'Origin': 'https://www.birdreport.cn',
    'Pragma': 'no-cache',
    'Referer': 'https://www.birdreport.cn/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-site',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36',
    'requestId': 'a6173492505c8547b5585cb5dcbe0842',
    'sec-ch-ua': '"Chromium";v="140", "Not=A?Brand";v="24", "Google Chrome";v="140"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sign': '169567fd4fd1bdc1a1815ebb4a982835',
    'timestamp': f'{times}',
}

data = 'qbvWeQFVvN4h+x8bKcyIee63Q8eT/SxatPSWvH+g0S/r16rMW7JM1YWWEsb8w7A40heE5QNaPhLyu2PGpnMzVdqN5rIWos+Ln18lqq2Ld4/2AxfDgTq1mYIny1nxiv0JAhned2DWpgvJtthNgM9etXvK76BmWjlmjPiaGaTmUHBAkiZwGK/WPQ4/tGIRFPR0dURVtOPDcgd2qxHrJutevAZJUBkyPPNEE49dMe0rPqRJ8eOGgB3XFLtSt9jJUXhd9n/Z4VpPFQiIuXd8H2tK0A1QYOekr492JehaX1I+Go9gF5PWyipBEDHCCIGKY4MhGCs08Y97feUAfPZeXwG7QXKSyrTJvu5yPsdBCL4/zd/gtP1hzQ2y7xaDFnJ+SAngcpyFGsWuaDn+7ZeRTl+n9Ff/c3n5B7fw75l0upU7Eo1e/kYHhXjRoWPyzl+LWZ0lQxgyxBj+PcGvSo7P+I+opSkx344LsFdrRw/loD5D8ZiYR3v2yPJfZnyENxj371Id'

res = requests.post('https://api.birdreport.cn/front/record/activity/search', headers=headers, data=data)

print(res.status_code)
print(res.text)
